package com.jic.product.after.api;

import com.jic.common.base.vo.RestResult;
import com.jic.product.store.request.ProductCommentRequest;
import com.jic.product.store.response.ProductCommentResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author: mj
 * @date: 2020-01-09
 * @remark: 前台BBC-省市区服务接口
 */
@FeignClient(name = "jic-product",path = "/feginProductComment")
public interface ProductCommentApi {

    /**
     * 获取个人中心我的评价数量
     * @return
     */
    @PostMapping("/getProductCommentCount")
    RestResult<Long> getProductCommentCount(@RequestBody  String token);

    /**
     * 获取个人中心我的评价数量
     * @return
     */
    @PostMapping("/getProductCommentByOrderNo")
    RestResult<ProductCommentResponse> getProductCommentByOrderNo(@RequestBody ProductCommentRequest productCommentRequest);


}
